package com.settlement.system.service.impl;

import com.settlement.system.mapper.BaseMapper;
import com.settlement.system.mapper.InternetShopConfigMapper;
import com.settlement.system.model.entity.common.InternetShopConfig;
import com.settlement.system.service.InternetShopConfigService;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 请写出类的用途 
 * @author x1
 * @date  2019-03-11 10:44:59
 * @version 1.0.0
 * 
 * All Rights Reserved. 
 * 
 * The software for the testdevelopment, without the 
 * company's written consent, and any other individuals and 
 * organizations shall not be used, Copying, Modify or distribute 
 * the software.
 * 
 */
@Service
class InternetShopConfigServiceImpl extends BaseServiceImpl  implements InternetShopConfigService {
    
	@Resource
    private InternetShopConfigMapper internetShopConfigMapper;

	@Override
	public BaseMapper init() {
		return internetShopConfigMapper;
	}

    /**
	 * 获取所有的网销店
	 * @return 店铺编码集合
	 */
	@Override
	public List<InternetShopConfig> getAllInternetShop(){
		return internetShopConfigMapper.getAllInternetShop();
	}

	@Override
	public List<String> getO2OShopList(Map<String,Object> params) {
		return internetShopConfigMapper.selectO2OShopList(params);
	}

	/**
	 * 获取需要拆单的店。
	 * @param companyNo 公司编码
	 * @param shopSaleTypes 业务类型
	 * @return List
	 */
	@Override
	public List<InternetShopConfig> getSplitInternetShop(String companyNo,List<Integer> shopSaleTypes) {
		return internetShopConfigMapper.getSplitInternetShop(companyNo,shopSaleTypes);
	}
    
    
}